﻿<%@ Control Language="VB" AutoEventWireup="false" CodeFile="Detail.ascx.vb" Inherits="Control_MSDS_Detail" %>
<script type="text/javascript">
    function writeSwf(swf) {
        open_window_max('../PrintLabel/Viewer.aspx?swf=' + swf, 'viewer');
    }
    function OpenLink(swf) {
        open_window_max(swf, 'viewer');
    }
    function open_window_max(aURL, aWinName) {
        var wOpen;
        var sOptions;

        sOptions = 'status=yes,menubar=yes,scrollbars=auto,resizable=yes,toolbar=yes,fullscreen=yes';
        sOptions = sOptions + ',width=' + (screen.availWidth - 0).toString();
        sOptions = sOptions + ',height=' + (screen.availHeight - 0).toString();
        sOptions = sOptions + ',screenX=0,screenY=0,left=0,top=0';

        wOpen = window.open('', aWinName, sOptions);
        wOpen.location = aURL;
        wOpen.focus();
        wOpen.moveTo(0, 0);
        wOpen.resizeTo(screen.availWidth, screen.availHeight);
        return wOpen;
    }
    function SetDownFile(aURL) {
        if (aURL.indexOf(".pdf") > -1) {
            open_window_max(aURL, 'pdf');
        }
        document.getElementById('expFile').src = aURL;
        return false;
    }
</script>

<asp:UpdatePanel ID="uplMsdssection01" runat="server">
	<ContentTemplate>
<div class="BoxField">
	<div style="clear: both; padding-top: 10px;">
	</div>
	<div class="DivRow">
		<div class="">
			<h3>XEM CHI TIẾT MSDS
			</h3>
		</div>
		<div style="clear: both">
		</div>
	</div>
	<div style="clear: both; padding-top: 10px;">
	</div>
<div class="DivLeft">
	<div class="DivRow">
		<div class="DivLabel">
			<asp:Label ID="lblItemcode" CssClass="TextLabel" runat="server" Text="Item Code:" />
		</div>
		<div class="DivTextBox">
			<asp:TextBox ID="txtItemcode" CssClass="TextBox" runat="server" Text="" ClientIDMode="Static" />
			<asp:HiddenField runat="server" ID="hidItemCode" Value="" ClientIDMode="Static" />
		</div>
	</div>
	<div class="DivRow">
		<div class="DivLabel">
			<asp:Label ID="lblItemname" CssClass="TextLabel" runat="server" Text="Item Name:" />
		</div>
		<div class="DivTextBox">
			<asp:TextBox ID="txtItemname" CssClass="TextBox" runat="server" Text="" ClientIDMode="Static" />
		</div>
	</div>
	<div class="DivRow" style="height: 30px">
		<div class="DivLabel">
			<asp:Label ID="lblVendorcode" CssClass="TextLabel" runat="server" Text="Vendor Code:" />
		</div>
		<div class="DivTextBox" id="divVendorCode">
			<asp:TextBox id="txtVendorCode" class='TextBox' runat="server">
				
			</asp:TextBox>
		</div>
		<asp:HiddenField ID="hidVendorCode" runat="server" Value="" ClientIDMode="Static" />
	</div>
	<div class="DivRow">
		<div class="DivLabel">
			<asp:Label ID="lblVendorname" CssClass="TextLabel" runat="server" Text="Vendor Name:" />
		</div>
		<div class="DivTextBox">
			<asp:TextBox ID="txtVendorname" CssClass="TextBox" runat="server" Text="" ClientIDMode="Static" />
		</div>
	</div>
	<div class="DivRow">
		<div class="DivLabel">
			<asp:Label ID="lblOriginal" CssClass="TextLabel" runat="server" Text="Origin:" />
		</div>
		<div class="DivTextBox">
			<asp:TextBox ID="txtOriginal" CssClass="TextBox" runat="server" Text="" ClientIDMode="Static" />
		</div>
	</div>

	<div class="DivRow" >
		
			<asp:Button ID="btnReference" runat="server"  Text="Reference" CssClass="Reference" Visible="false"/>
            <asp:Button ID="btnOriginal" runat="server"  Text="Original MSDS" CssClass="Original" Visible="false"/>
            <asp:Button ID="btnVietnameseMSDS" runat="server"  Text="Vietnamese MSDS" CssClass="VietnameseMSDS"/>
            <asp:Button ID="btnPrintLabel" runat="server"  Text="Print Label" CssClass="PrintLabel"/>
            
		
		
	</div>
                <div class="DivRow" style="width:97%">
                <div class="DivRow"><b style="color:#FF3333; font-size:20px"> Phương tiện bảo hộ cá nhân (PPE)</b></div>
                <div class="DivRow"><asp:Label ID="lblPPE" runat="server"></asp:Label></div>
            </div>     
    </div>
    <div class="DivRight">
	        <div class="DivRow">
		        <div class="DivLabel">
			        <asp:Label ID="Label3" CssClass="CacNguyCo" runat="server" Text="Tên thương mại:" />
		        </div>
		        <div class="DivTextBox">
			        <asp:Label ID="lblTenThuongMai" runat="server"></asp:Label>
		        </div>
	        </div>
	        <div class="DivRow">
		        <div class="DivLabel">
			        <asp:Label ID="Label4" CssClass="CacNguyCo" runat="server" Text="Tên khác:" />
		        </div>
		        <div class="DivTextBox">
			        <asp:Label ID="lblTenKhac" runat="server"></asp:Label>
		        </div>
	        </div>

	        <div class="DivRow">
		        <div class="DivLabel">
			        <asp:Label ID="Label433" CssClass="CacNguyCo" runat="server" Text="CAS:" />
		        </div>
		        <div class="DivTextBox">
			        <asp:Label ID="lblCAS" runat="server"></asp:Label>
		        </div>
	        </div>

	        <div class="DivRow">
		        <div class="DivLabel">
			        <asp:Label ID="Label45" CssClass="CacNguyCo" runat="server" Text="EC:" />
		        </div>
		        <div class="DivTextBox">
			        <asp:Label ID="lblEC" runat="server"></asp:Label>
		        </div>
	        </div>
	        <div class="DivRow">
		        <div class="DivLabel">
			        <asp:Label ID="Label333" CssClass="CacNguyCo" runat="server" Text="UN:" />
		        </div>
		        <div class="DivTextBox">
			        <asp:Label ID="lblUN" runat="server"></asp:Label>
		        </div>
	        </div>
            <div class="DivRow">
            <div class="DivLeftNguyCo">
            <div class="DivRow">
                    <div class="CacNguyCo">
                    Phân loại hóa chất hoặc hỗn hợp:
                    </div>
                    <asp:Literal ID="ltrPhanLoai" runat="server"> </asp:Literal>
                    <div>
                    <asp:Repeater ID="rptOtherList" runat="server">
                        <ItemTemplate>
                            <div>
                                   - <asp:Literal ID="ltrTitle" runat="server"></asp:Literal>
                            </div>
                        </ItemTemplate>
                    </asp:Repeater>
                    </div>
            </div>
    
            </div>
            <div class="DivRight" id="DivCanhBao" runat="server">
                <div class="DivRow CanhBaoNguyCo">
                   Từ cảnh báo: <asp:Literal ID="ltrTuCanhBao" runat="server"></asp:Literal>
                </div>   
                <div class="DivRow">
                <div class="CacNguyCo">Các nguy cơ: </div>
                    <asp:Repeater ID="rptCanhBao" runat="server">
                        <ItemTemplate>
                            <div>
                                   - <asp:Literal ID="ltrTitle" runat="server"></asp:Literal>
                            </div>
                        </ItemTemplate>
                    </asp:Repeater>
                    </div>            
            </div>
            </div>
          

            <div class="DivRow" style="text-align:center;width:600px">
                <div class="HinhDo">
                    <asp:Repeater ID="rptHinhDoCanhBao" runat="server">
                         <ItemTemplate>
                            <div class="imgHinhDo">
                                <asp:Image ID="imgHinhDo" runat="server" />
                            </div>
                         </ItemTemplate>
                    </asp:Repeater>
                    </div>
            </div>
             <div class="DivRow" style="text-align:center;width:600px">
                    <div class="HinhDo">
                    
                        <asp:Repeater ID="rptHinhDoVanChuyen" runat="server">
                             <ItemTemplate>
                                <div class="imgHinhDo">
                                    <asp:Image ID="imgHinhDo" runat="server" />
                                </div>
                             </ItemTemplate>
                        </asp:Repeater>
                    
                    </div>

            </div>
        </div>
</div>

<div style="display: none">
	<asp:HiddenField ID="hidID" Value="0" runat="server" ClientIDMode="Static" />
      <iframe src="#" id="expFile">
    
     </iframe>
</div>
</ContentTemplate>
</asp:UpdatePanel>
<script type="text/javascript">
	function ajaxJquery() {

	    $(function () {
	        $(".TextBox, .DropDownList").attr("disabled", true);
            });
		
	}

		
</script>
